package com.zx.service;

import com.zx.dao.AdminDao;
import com.zx.dao.impl.AdminDaoImpl;

import java.util.Date;


public class AdminService {

    private static AdminDao dao=new AdminDaoImpl();
    public static void updateLoginTimeAndIp(String username, Date date, String ip){
         dao.updateLoginTime(username, date, ip);
    }
    public static boolean login(String username,String password){
        return dao.login(username, password);
    }
}
